package com.example.wificovv2;

import com.example.wificov.SamplingPowPic;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.support.v4.app.FragmentActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.AdapterView.OnItemSelectedListener;
//public class Displayband extends Activity { 
public class Displayband extends FragmentActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_displayband);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		super.onCreateOptionsMenu(menu);
		menu.add("Go back home screen")
		.setIntent(new Intent(this, MainActivity.class));
		menu.add("Help")
		.setIntent(new Intent(this, Guide.class));
		menu.add("Sampling power")
		.setIntent(new Intent(this, SamplingPowPic.class));
		menu.add("Sampling pos and bandwidth")
		.setIntent(new Intent(this, SeekAp.class));
		menu.add("View pow map")
		.setIntent(new Intent(this, Displaypow.class));
		menu.add("View band map")
		.setIntent(new Intent(this, Displayband.class));
		menu.add("View wlan map")
		.setIntent(new Intent(this, Wlanmap.class));
		return true;
	}

	@Override
    public boolean onOptionsItemSelected(MenuItem item) {
    switch(item.getItemId())
    	{
       case R.id.mainscreen:
        //Xử lý tro ve man hinh chinh
    	   break;
        case R.id.guide:
        //xử lý xem thông huong dan
        	break;
        case R.id.samplingpow:
        	break;
        case R.id.samplingband:
        	break;
        case R.id.powermap:
        	break;	
        case R.id.bandwidthmap:
        	break;	
        case R.id.wlanmap:
        	break;	
        }
        return super.onOptionsItemSelected(item);
        }

}
